package com.zzw.resilience4j;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Administrator
 */
@Configuration
@ConditionalOnProperty(prefix = "com.zzw.res4j.rate.limiter", name = "enable")
public class Res4jRateLimterConfiguration {

    @Bean
    public DefaultRes4jRateLimter defaultRes4jRateLimter() {
        return new DefaultRes4jRateLimter();
    }
}
